-- GENERATED SPELL FOR [Caverndeep Ambusher] --


function spell0_6207(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(2590,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6207', 572, 1)
end

function Sorts_6207(pUnit, Event)
local choix_sorts_6207 = math.random(0, 0)
if choix_sorts_6207 == 0 then
pUnit:RegisterEvent('spell0_6207', 1, 1)
end
end

function mob6207_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6207', math.random(1500, 3000), 1)
end

function mob6207_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6207_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6207_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6207, 1, 'mob6207_Action')
RegisterUnitEvent(6207, 2, 'mob6207_Leave')
RegisterUnitEvent(6207, 3, 'mob6207_Kill')
RegisterUnitEvent(6207, 4, 'mob6207_Die')
